<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>用户注册</title>

    <!-- Bootstrap 核心CSS文件 -->
    <link
      href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
      rel="stylesheet"
      integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
      crossorigin="anonymous"
    />
    <!--font-awesome 核心CSS文件-->
    <link
      href="https://cdn.bootcss.com/font-awesome/5.13.0/css/all.css"
      rel="stylesheet"
    />
    
    <!-- 导入自定义样式 -->
    <link rel="stylesheet" href="/stylesheets/login.css">
  </head>
  <body>
    <div class="container">
      <div class="form row">
        <form 
          id="form_reg" 
          class="form-horizontal col-sm-offset col-md-offset-3"
        >
          <h3 class="form-title">注册</h3>
          <div class="col-sm-9 col-md-9">
            <div class="form-group">
              <!--        邮箱图标和邮箱输入框            -->
              <i class="fas fa-envelope" aria-hidden="true"></i>
              <input
                class="form-control required"
                type="email"
                name="email"
                id="email"
                placeholder="请输入邮箱"
                required
              />
            </div>

            <!--        密码图标和密码输入框                -->
            <div class="form-group">
              <i class="fas fa-key" aria-hidden="true"></i>
              <input
                class="form-control required"
                type="password"
                name="password"
                id="password"
                placeholder="请输入密码"
                required
              />
            </div>
            <!--          确认密码              -->
            <div class="form-group">
              <i class="fas fa-check-circle" aria-hidden="true"></i>
              <input
                class="form-control required"
                type="password"
                name="resetpwd"
                id="resetpwd"
                placeholder="请确认密码"
                required
              />
            </div>
            <!--        昵称                -->
            <div class="form-group">
              <i class="fas fa-user" aria-hidden="true"></i>
              <input
                class="form-control required"
                type="text"
                name="username"
                id="username"
                placeholder="请输入昵称"
                required
              />
            </div>

            <div class="form-group"></div>

            <!--注册按钮-->
            <div class="form-group button-group">
              <input
                type="button"
                value="返回"
                id="back_btn"
                onclick="window.location.href='/login'"
                class="btn btn-success pull-right"
              />
              <input
                type="submit"
                class="btn btn-info pull-left"
                value="注册"
              />
            </div>
          </div>
        </form>
      </div>
    </div>

    <!-- 导入 Layui 的JS文件 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.min.js"></script>
    <!-- 在bootstrap.min.js 之前引入 jquery -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <!-- Bootstrap 核心js文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
    <!-- 导入login.js -->
    <script src="/javascripts/login.js"></script>

  </body>
</html>
